#ifndef DRIVEWATCHER_H
#define DRIVEWATCHER_H

#include "vdrives.h"
using namespace  voidrealms;
using namespace  win32;
#include <QThread>
#include <QDebug>
#include <QTimer>
#include "logger.h"

class DriveWatcher : public QThread
{
    Q_OBJECT

public:
    explicit DriveWatcher();
    DriveWatcher(const char* driveLetter);
    DriveWatcher(const QString &driveLetter);
    ~DriveWatcher();
protected:
    void run();

signals:
    void discDetected();
    void discEmpty();

public slots:
    void reloadDrive();
    void checkDrive();
    void changeLetter(QString);
private:
    QString _driveLetter;
    VDrives _driveInfo;
    QTimer *timer;
};

#endif // DRIVEWATCHER_H
